<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>头部</title>
    <link rel="stylesheet" type="text/css" href="../../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui.css" />
    <link rel="stylesheet" type="text/css" href="../../css/aui-pull-refresh.css" />
    <style>
        body {
            margin: 0;
        }
        #header_top {
          background: #fff;
          padding-top:25px;
        }
        #header_top .aui-icon-left,
        #header_top .aui-title,
        #header_top .aui-icon-search,
        #header_top .aui-pull-right .aui-iconfont {
          color: #333;
        }
        .aui-bar-nav{
            border-bottom: none
        }
    </style>
</head>

<body>
  <header class="aui-bar aui-bar-nav" id="header_top" style="">
    <a class="aui-pull-left aui-btn" onclick="goback()">
        <span class="aui-iconfont aui-icon-left"></span>
    </a>
    <div class="aui-title"></div>
  </header>
</body>
<script type="text/javascript" src="../../script/api.js"></script>
<script type="text/javascript" src="../../script/zepto.js"></script>
<script type="text/javascript" src="../../script/vue.min.js"></script>
<script type="text/javascript" src="../../script/aui-tab.js"></script>
<script type="text/javascript" src="../../script/aui-scroll.js"></script>
<script type="text/javascript" src="../../script/aui-pull-refresh.js"></script>
<script type="text/javascript">
    function goback() {
      // api.closeWin()
      api.closeWin({
          //name: 'root'
      });
    }
    apiready = function () {
      var type = api.pageParam.type
      var name = api.pageParam.name
      var header_top = $api.byId('header_top');
  		var header_topPos = $api.offset(header_top);
      $('.aui-title').text(type)
        api.openFrame({
          name: name,
          url: '../'+name+'.html',
          rect: {
            x:0,
            y:header_topPos.h,
            w:'auto',
            h:api.frameHeight - header_topPos.h
          },
          pageParam: {
              name: type,
              code: api.pageParam.code || '',
              password: api.pageParam.password || '',
              data: api.pageParam.data || '',
              zh_type: api.pageParam.zh_type || ''
          }
        })
    }
</script>

</html>
